/**
 * 
 */
package com.drei.wolke.rbac.service.impl;

import javax.servlet.http.HttpServletRequest;

import org.springframework.security.core.Authentication;
import org.springframework.security.oauth2.provider.OAuth2Authentication;
import org.springframework.stereotype.Component;
import org.springframework.util.AntPathMatcher;

import com.drei.wolke.rbac.service.RbacService;

import lombok.extern.slf4j.Slf4j;
 
/** 
* @author 作者 owen E-mail: 624191343@qq.com
* @version 创建时间：2017年12月4日 下午5:32:29 
* 类说明 
*/
@Slf4j
@Component("rbacService")
public class RbacServiceImpl implements RbacService {

	private AntPathMatcher antPathMatcher = new AntPathMatcher();

	@Override
	public boolean hasPermission(HttpServletRequest request, Authentication authentication) {
		Object principal = authentication.getPrincipal();

		boolean hasPermission = false;

		
		
		log.debug("============"+request.getRequestURL());

		return hasPermission;
	}

}
